/** * api接口统一管理 */
import { get, post } from './http'

//用户相关
export const userLoginInfo = p => get('/loginState', p) //应该是通过发送token来摘取用户信息，

//首页的
export const apiIndexGetBanner       = p => get('/homeBannerData', p)    //加载banner
export const apiIndexProductCategory = p => get('/homeArtClass', p)      //加载分类入口
export const apiIndexRecommend       = p => get('/homeRecommendArt', p)  //加载推荐商品

//新闻
export const apiNewsList     = p => get('/newList', p)     //新闻列表
export const apiNewsCategory = p => get('/newClass', p)    //新闻分类
export const apiNewsDetail   = p => get('/newContent', p)  //新闻详细

//关于我们
export const apiAboutCategory = p => get('/aboutCategory', p)  //分类
export const apiAboutContent  = p => get('/aboutContent', p)   //内容

//商品
export const apiGoodsDetail   = p => get('/artDetail', p)    //商品详情
export const apiGoodsCategory = p => get('/artCategory', p)  //商品分类
export const apiGoodsList     = p => get('/artData', p)      //商品列表
export const apiParams        = p => get('/artParams', p)    //商品参数
export const apiArtIsCollect  = p => get('/artIsCollect', p)  //商品是否有收藏

//展会
export const apiExhibitionDetail = p => get('/ticketDetail', p)  //展会详情
export const apiExhibition       = p => get('/ticket', p)        //展会列表

//艺术家
export const apiMaster = p => get('/authorDetail', p)  //艺术家

//个人中心的相关api
////////////////////////线上的未改///////////////////////////////////////////
export const apiImageUpload   = p => post('/fileupload',p)    //上传图片地址
export const apiMyinfo        = p => get('/showMyInfo',p)     //我的基本资料
export const apiMyinfoUpdata  = p => post('/updateMyIno', p)  //更新个人信息
export const apiSendPhoneCode = p => get('/sendCode',p)       //短信验证地址
export const apiBindTel       = p => post('/verPhoneCode',p)  //更新绑定的手机号

export const apiFavorite      = p => get('/artCollent',p)        //收藏
export const apiAddressList   = p => get('/addressUserList',p)   //地址列表
export const apiAddressAdd    = p => post('/address_add',p)  //添加地址
export const apiAddressEdit   = p => post('/address_edit',p)  //修改地址
export const apiAddressDel    = p => get('/deleteAddress',p)     //删除地址
// export const apiRealNameInit  = p => get('/initIdVetify',p)      //实名认证初始化显示
// export const apiRealName      = p => get('/commitIdVetify',p)    //提交实名认证
// export const apiRealNameReset = p => get('/reCommitInfo',p)      //提交实名认证
export const apiFavProduct    = p => get('/userColler',p)        //我收藏的商品
export const apiMyTicket      = p => get('/showMyTicketList',p)  //我的门票
export const apiMyorder       = p => get('/orderList',p)         //我的订单
export const apiOrderState     = p => post('/orderUpdateState',p)  //改变订单状态

//订单相关
export const apiOrderSubmit    = p => post('/Order',p)           //订单提交地址
export const apiOrderUserAddrs = p => get('/addressUserList',p)  //订单页，用户的收货地址列表
export const apiOrderGoods     = p => get('/artDetail/s',p)      //订单页，用户要购买的商品列表
export const apiOrderDetail    = p => get('/orderDetail',p)      //订单页详情
export const apiPay            = p => get('/pay',p)              //调用支付